'use strict';

/**
 * Config for the router
 */
angular.module('app').config(
    ['$stateProvider', '$urlRouterProvider', '$libLoadProvider',function ($stateProvider,   $urlRouterProvider, $libLoadProvider) {
          
          
          $stateProvider.state('app.interface', {
              abstract: true,
              url: '/interface',
              templateUrl: 'modular/interface/tpl/interface.html',
              resolve: $libLoadProvider.load( ['modular/interface/controllers/interfaceCtrl.js'] )
          })
          .state('app.interface.list', {
              url: '/index/{provider}',
              templateUrl: 'modular/interface/tpl/interface.list.html'
          })
          .state('app.interface.compose', {
              url: '/compose',
              templateUrl: 'modular/interface/tpl/interface.new.html',
              resolve: $libLoadProvider.load( ['ngImgCrop'] )
          })
          .state('app.interface.pathnew', {
	          url: '/pathnew/{provider}',
	          templateUrl: 'modular/interface/tpl/interface.pathNew.html'
          })
          .state('app.interface.keynew', {
	          url: '/keynew/{provider}',
	          templateUrl: 'modular/interface/tpl/interface.keyNew.html'
          });


         
      }
    ]
  );
